import { observer } from 'mobx-react-lite';
import { memo } from 'react';

import { WindowListener } from '@/type';
import useIpcListen from '@/hooks/useIpcListen';

export const Home = memo(
    observer(() => {
        const ipcListen = useIpcListen();
        ipcListen(WindowListener.ready, (_: unknown, value: string) => {
            console.log('electron 启动成功...', value);
        });
        return <section className="w-[100vw] h-full">123123</section>;
    })
);
